//
//  MDBeautyCell.swift
//  麦兜直播
//
//  Created by Apple on 16/10/12.
//  Copyright © 2016年 yeqingyu. All rights reserved.
//

import UIKit

class MDBeautyCell: UICollectionViewCell {
    
    var room:MDRoom?{
        didSet{
        title.text = room?.nickname
        address.text = room?.anchor_city
        print(room?.online)
        online.setTitle("\(room!.online)在线", for: .normal)
        let iconUrl = URL(string: (room?.vertical_src)!)
            
        iconView.kf.setImage(with: iconUrl, placeholder: UIImage(named: "live_cell_default_phone"))
        }
    }
    

    @IBOutlet weak var title: UILabel!
    @IBOutlet weak var address: UILabel!
    @IBOutlet weak var iconView: UIImageView!
    @IBOutlet weak var online: UIButton!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
